package com.citywy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 新闻表
 * </p>
 *
 * @author taray
 * @since 2024-01-19
 */
@ApiModel(value = "News对象", description = "新闻表")
public class News implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("常识标题")
    private String title;

    @ApiModelProperty("缩略图")
    private String logo;

    @ApiModelProperty("常识摘要")
    private String summary;

    @ApiModelProperty("常识内容")
    private String content;

    @ApiModelProperty("标签")
    private String tag;

    @ApiModelProperty("所属栏目,外键引用栏目表,业务逻辑层上不为空")
    private Integer menu;

    @ApiModelProperty("创建时间,默认当前系统时间")
    private LocalDateTime eSave;

    @ApiModelProperty("编辑时间,默认为当前系统时间")
    private LocalDateTime eChg;

    @ApiModelProperty("审核状态（审核中0，已通过1，未通过2，已发布3）")
    private Integer state;

    @ApiModelProperty("来源")
    private String source;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Integer getMenu() {
        return menu;
    }

    public void setMenu(Integer menu) {
        this.menu = menu;
    }

    public LocalDateTime geteSave() {
        return eSave;
    }

    public void seteSave(LocalDateTime eSave) {
        this.eSave = eSave;
    }

    public LocalDateTime geteChg() {
        return eChg;
    }

    public void seteChg(LocalDateTime eChg) {
        this.eChg = eChg;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @Override
    public String toString() {
        return "News{" +
            "id = " + id +
            ", title = " + title +
            ", logo = " + logo +
            ", summary = " + summary +
            ", content = " + content +
            ", tag = " + tag +
            ", menu = " + menu +
            ", eSave = " + eSave +
            ", eChg = " + eChg +
            ", state = " + state +
            ", source = " + source +
        "}";
    }
}
